<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>重庆省宠多多科技有限公司 - 专业宠物服务平台</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="style.css" rel="stylesheet">
    <script>
        // Tailwind 配置
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#4338ca',
                        secondary: '#8b5cf6',
                        accent: '#ec4899',
                        neutral: '#1f2937',
                        'neutral-light': '#f3f4f6',
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                },
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .text-shadow {
                text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            .transition-transform {
                transition-property: transform;
                transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
                transition-duration: 300ms;
            }
            .hover-scale {
                @apply hover:scale-105 transition-all duration-300;
            }
            .card-shadow {
                box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            }
        }
    </style>
</head>
<body class="font-sans text-gray-800 bg-white">
    <!-- 导航栏 -->
    <nav id="navbar" class="fixed w-full bg-white/90 backdrop-blur-sm z-50 transition-all duration-300 shadow-sm">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center h-16">
                <div class="flex items-center">
                    <div class="flex-shrink-0">
                        <i class="fa fa-paw text-primary text-3xl"></i>
                    </div>
                    <div class="ml-4 text-xl font-bold text-primary">宠多多科技</div>
                </div>
                <div class="hidden md:block">
                    <div class="ml-10 flex items-center space-x-4">
                        <a href="#home" class="px-3 py-2 rounded-md text-sm font-medium text-primary hover:bg-primary/10 transition-all">首页</a>
                        <a href="#about" class="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:bg-primary/10 hover:text-primary transition-all">关于我们</a>
                        <a href="#services" class="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:bg-primary/10 hover:text-primary transition-all">服务项目</a>
                        <a href="#advantages" class="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:bg-primary/10 hover:text-primary transition-all">公司优势</a>
                        <a href="#contact" class="px-3 py-2 rounded-md text-sm font-medium text-gray-700 hover:bg-primary/10 hover:text-primary transition-all">联系我们</a>
                    </div>
                </div>
                <!-- 移动端菜单按钮 -->
                <div class="md:hidden">
                    <button id="menu-toggle" class="inline-flex items-center justify-center p-2 rounded-md text-gray-700 hover:text-primary hover:bg-primary/10 focus:outline-none">
                        <i class="fa fa-bars text-xl"></i>
                    </button>
                </div>
            </div>
        </div>
        
        <!-- 移动端菜单 -->
        <div id="mobile-menu" class="hidden md:hidden bg-white border-t">
            <div class="px-2 pt-2 pb-3 space-y-1">
                <a href="#home" class="block px-3 py-2 rounded-md text-base font-medium text-primary bg-primary/10">首页</a>
                <a href="#about" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-primary/10 hover:text-primary">关于我们</a>
                <a href="#services" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-primary/10 hover:text-primary">服务项目</a>
                <a href="#advantages" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-primary/10 hover:text-primary">公司优势</a>
                <a href="#contact" class="block px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:bg-primary/10 hover:text-primary">联系我们</a>
            </div>
        </div>
    </nav>

    <!-- 英雄区域 -->
    <section id="home" class="pt-24 pb-20 bg-gradient-to-br from-primary/5 to-secondary/5">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex flex-col lg:flex-row items-center">
                <div class="lg:w-1/2 mb-10 lg:mb-0">
                    <h1 class="text-[clamp(2rem,5vw,3.5rem)] font-bold text-neutral leading-tight mb-4">
                        重庆省宠多多科技有限公司
                    </h1>
                    <p class="text-lg text-gray-700 mb-8 max-w-lg">
                        专注于为宠物提供全方位智能服务的科技创新企业，让养宠生活更简单、更美好。
                    </p>
                    <div class="flex flex-wrap gap-4">
                        <a href="#about" class="px-6 py-3 bg-primary text-white font-medium rounded-lg shadow-md hover:bg-primary/90 hover:shadow-lg transition-all hover-scale">
                            了解更多
                        </a>
                        <a href="#contact" class="px-6 py-3 bg-white text-primary font-medium rounded-lg border border-primary/30 shadow-sm hover:bg-primary/5 transition-all hover-scale">
                            联系我们
                        </a>
                    </div>
                </div>
                <div class="lg:w-1/2">
                    <div class="relative">
                        <div class="absolute -inset-4 bg-gradient-to-r from-primary to-secondary rounded-2xl blur-xl opacity-20 animate-pulse"></div>
                        <img src="https://picsum.photos/id/169/800/600" alt="宠物与科技的结合" class="relative w-full h-auto rounded-xl shadow-lg hover-scale">
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 公司简介 -->
    <section id="about" class="py-20 bg-white">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-16">
                <h2 class="text-[clamp(1.8rem,4vw,2.5rem)] font-bold text-neutral mb-4">关于我们</h2>
                <div class="w-24 h-1 bg-primary mx-auto rounded-full mb-6"></div>
                <p class="text-gray-600 max-w-2xl mx-auto">
                    重庆省宠多多科技有限公司是一家专注于宠物产业科技创新的企业，致力于为宠物主人提供全方位、智能化的宠物服务解决方案。
                </p>
            </div>
            
            <div class="flex flex-col lg:flex-row items-center gap-12">
                <div class="lg:w-1/2">
                    <div class="relative">
                        <div class="absolute -inset-4 bg-gradient-to-r from-accent to-secondary rounded-2xl blur-xl opacity-10"></div>
                        <img src="https://picsum.photos/id/237/600/400" alt="公司团队" class="relative w-full h-auto rounded-xl shadow-lg hover-scale">
                    </div>
                </div>
                <div class="lg:w-1/2">
                    <h3 class="text-2xl font-bold text-neutral mb-4">公司简介</h3>
                    <p class="text-gray-700 mb-4">
                        重庆省宠多多科技有限公司成立于2020年，总部位于重庆市高新区，是一家集宠物智能设备研发、宠物健康管理、宠物社区平台运营于一体的综合性科技企业。
                    </p>
                    <p class="text-gray-700 mb-6">
                        公司秉承"科技赋能养宠生活"的理念，依托人工智能、大数据分析等先进技术，为宠物主人提供智能硬件、移动应用、线上社区等多元化服务，旨在让养宠生活更简单、更科学、更快乐。
                    </p>
                    
                    <div class="grid grid-cols-1 sm:grid-cols-2 gap-6 mb-8">
                        <div class="flex items-start space-x-3">
                            <div class="flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <i class="fa fa-lightbulb-o text-xl"></i>
                            </div>
                            <div>
                                <h4 class="font-semibold text-gray-900">创新理念</h4>
                                <p class="text-gray-600 text-sm">将最新科技应用于宠物行业，创造全新养宠体验</p>
                            </div>
                        </div>
                        <div class="flex items-start space-x-3">
                            <div class="flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <i class="fa fa-users text-xl"></i>
                            </div>
                            <div>
                                <h4 class="font-semibold text-gray-900">专业团队</h4>
                                <p class="text-gray-600 text-sm">汇聚行业精英，拥有丰富的宠物领域经验</p>
                            </div>
                        </div>
                        <div class="flex items-start space-x-3">
                            <div class="flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <i class="fa fa-heart text-xl"></i>
                            </div>
                            <div>
                                <h4 class="font-semibold text-gray-900">爱心服务</h4>
                                <p class="text-gray-600 text-sm">以宠物健康和主人需求为中心，提供贴心服务</p>
                            </div>
                        </div>
                        <div class="flex items-start space-x-3">
                            <div class="flex-shrink-0 w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <i class="fa fa-globe text-xl"></i>
                            </div>
                            <div>
                                <h4 class="font-semibold text-gray-900">广阔前景</h4>
                                <p class="text-gray-600 text-sm">引领宠物行业数字化转型，打造智慧养宠生态</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 服务项目 -->
    <section id="services" class="py-20 bg-neutral-light">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-16">
                <h2 class="text-[clamp(1.8rem,4vw,2.5rem)] font-bold text-neutral mb-4">服务项目</h2>
                <div class="w-24 h-1 bg-primary mx-auto rounded-full mb-6"></div>
                <p class="text-gray-600 max-w-2xl mx-auto">
                    我们提供全方位的宠物智能服务，从健康监测到日常管理，满足宠物主人的各种需求。
                </p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- 服务卡片 1 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl transition-all hover-scale card-shadow">
                    <div class="h-48 overflow-hidden">
                        <img src="https://picsum.photos/id/1025/600/400" alt="智能宠物健康监测" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                    </div>
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary mb-4">
                            <i class="fa fa-heartbeat text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold text-neutral mb-3">智能健康监测</h3>
                        <p class="text-gray-600 mb-4">
                            通过智能硬件实时监测宠物健康数据，包括心率、体温、活动量等，让主人随时了解宠物健康状况。
                        </p>
                        <a href="#" class="inline-flex items-center text-primary font-medium hover:underline">
                            了解更多 <i class="fa fa-arrow-right ml-2"></i>
                        </a>
                    </div>
                </div>
                
                <!-- 服务卡片 2 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl transition-all hover-scale card-shadow">
                    <div class="h-48 overflow-hidden">
                        <img src="https://picsum.photos/id/40/600/400" alt="宠物行为分析" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                    </div>
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary mb-4">
                            <i class="fa fa-bar-chart text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold text-neutral mb-3">行为分析系统</h3>
                        <p class="text-gray-600 mb-4">
                            基于AI技术分析宠物行为模式，识别异常行为，提供个性化的训练建议，帮助主人更好地理解和照顾宠物。
                        </p>
                        <a href="#" class="inline-flex items-center text-primary font-medium hover:underline">
                            了解更多 <i class="fa fa-arrow-right ml-2"></i>
                        </a>
                    </div>
                </div>
                
                <!-- 服务卡片 3 -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-xl transition-all hover-scale card-shadow">
                    <div class="h-48 overflow-hidden">
                        <img src="https://picsum.photos/id/1074/600/400" alt="宠物社区平台" class="w-full h-full object-cover transition-transform duration-500 hover:scale-110">
                    </div>
                    <div class="p-6">
                        <div class="w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary mb-4">
                            <i class="fa fa-comments text-xl"></i>
                        </div>
                        <h3 class="text-xl font-bold text-neutral mb-3">宠物社区平台</h3>
                        <p class="text-gray-600 mb-4">
                            打造活跃的宠物爱好者社区，提供交流分享、宠物社交、专业咨询等服务，让养宠不再孤单。
                        </p>
                        <a href="#" class="inline-flex items-center text-primary font-medium hover:underline">
                            了解更多 <i class="fa fa-arrow-right ml-2"></i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 公司优势 -->
    <section id="advantages" class="py-20 bg-white">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="text-center mb-16">
                <h2 class="text-[clamp(1.8rem,4vw,2.5rem)] font-bold text-neutral mb-4">公司优势</h2>
                <div class="w-24 h-1 bg-primary mx-auto rounded-full mb-6"></div>
                <p class="text-gray-600 max-w-2xl mx-auto">
                    我们拥有一支专业、充满激情的团队，致力于为宠物行业带来创新和变革。
                </p>
            </div>
            
            <div class="grid grid-cols-1 md:grid-cols-2 gap-16 items-center">
                <div class="order-2 md:order-1">
                    <div class="space-y-8">
                        <!-- 优势项 1 -->
                        <div class="flex items-start space-x-4">
                            <div class="flex-shrink-0 w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <span class="font-bold text-lg">01</span>
                            </div>
                            <div>
                                <h3 class="text-xl font-bold text-neutral mb-2">技术创新</h3>
                                <p class="text-gray-600">
                                    我们拥有多项专利技术，不断推动宠物智能设备和服务的创新与升级，处于行业领先地位。
                                </p>
                            </div>
                        </div>
                        
                        <!-- 优势项 2 -->
                        <div class="flex items-start space-x-4">
                            <div class="flex-shrink-0 w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <span class="font-bold text-lg">02</span>
                            </div>
                            <div>
                                <h3 class="text-xl font-bold text-neutral mb-2">专业团队</h3>
                                <p class="text-gray-600">
                                    团队成员来自宠物医疗、人工智能、软件开发等多个领域，拥有丰富的行业经验和专业知识。
                                </p>
                            </div>
                        </div>
                        
                        <!-- 优势项 3 -->
                        <div class="flex items-start space-x-4">
                            <div class="flex-shrink-0 w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <span class="font-bold text-lg">03</span>
                            </div>
                            <div>
                                <h3 class="text-xl font-bold text-neutral mb-2">用户至上</h3>
                                <p class="text-gray-600">
                                    我们始终以用户需求为中心，不断优化产品和服务，提供卓越的用户体验和完善的售后支持。
                                </p>
                            </div>
                        </div>
                        
                        <!-- 优势项 4 -->
                        <div class="flex items-start space-x-4">
                            <div class="flex-shrink-0 w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center text-primary">
                                <span class="font-bold text-lg">04</span>
                            </div>
                            <div>
                                <h3 class="text-xl font-bold text-neutral mb-2">生态布局</h3>
                                <p class="text-gray-600">
                                    我们正在构建完整的宠物服务生态系统，涵盖宠物健康、智能设备、社区互动等多个方面。
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="order-1 md:order-2 relative">
                    <div class="absolute -inset-4 bg-gradient-to-r from-primary to-secondary rounded-2xl blur-xl opacity-10"></div>
                    <img src="https://picsum.photos/id/180/600/800" alt="公司优势展示" class="relative w-full h-auto rounded-xl shadow-lg hover-scale">
                </div>
            </div>
        </div>
    </section>

    <!-- 联系我们 -->
    <section id="contact" class="py-20 bg-neutral">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="max-w-7xl mx-auto">
                <div class="text-center mb-16">
                    <h2 class="text-[clamp(1.8rem,4vw,2.5rem)] font-bold text-white mb-4">联系我们</h2>
                    <div class="w-24 h-1 bg-primary mx-auto rounded-full mb-6"></div>
                    <p class="text-gray-300 max-w-2xl mx-auto">
                        如果您对我们的产品和服务有任何疑问或建议，欢迎随时与我们联系。
                    </p>
                </div>
                
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-12">
                    <div class="bg-white/5 backdrop-blur-sm rounded-xl p-8 text-white">
                        <h3 class="text-2xl font-bold mb-6">联系方式</h3>
                        <div class="space-y-6">
                            <div class="flex items-start space-x-4">
                                <div class="flex-shrink-0 w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary">
                                    <i class="fa fa-map-marker text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="font-semibold text-white mb-1">公司地址</h4>
                                    <p class="text-gray-300">重庆市高新区科技园区88号宠多多大厦</p>
                                </div>
                            </div>
                            <div class="flex items-start space-x-4">
                                <div class="flex-shrink-0 w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary">
                                    <i class="fa fa-phone text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="font-semibold text-white mb-1">联系电话</h4>
                                    <p class="text-gray-300">023-12345678</p>
                                </div>
                            </div>
                            <div class="flex items-start space-x-4">
                                <div class="flex-shrink-0 w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary">
                                    <i class="fa fa-envelope text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="font-semibold text-white mb-1">电子邮箱</h4>
                                    <p class="text-gray-300">info@chongduoduo.com</p>
                                </div>
                            </div>
                            <div class="flex items-start space-x-4">
                                <div class="flex-shrink-0 w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary">
                                    <i class="fa fa-clock-o text-xl"></i>
                                </div>
                                <div>
                                    <h4 class="font-semibold text-white mb-1">工作时间</h4>
                                    <p class="text-gray-300">周一至周五: 9:00 - 18:00</p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="mt-8">
                            <h4 class="font-semibold text-white mb-4">关注我们</h4>
                            <div class="flex space-x-4">
                                <a href="#" class="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-all">
                                    <i class="fa fa-weixin text-xl"></i>
                                </a>
                                <a href="#" class="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-all">
                                    <i class="fa fa-weibo text-xl"></i>
                                </a>
                                <a href="#" class="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-all">
                                    <i class="fa fa-instagram text-xl"></i>
                                </a>
                                <a href="#" class="w-10 h-10 rounded-full bg-primary/20 flex items-center justify-center text-primary hover:bg-primary hover:text-white transition-all">
                                    <i class="fa fa-youtube-play text-xl"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                    
                    <div class="bg-white rounded-xl p-8 shadow-xl">
                        <h3 class="text-2xl font-bold text-neutral mb-6">发送消息</h3>
                        <form>
                            <div class="grid grid-cols-1 sm:grid-cols-2 gap-6 mb-6">
                                <div>
                                    <label for="name" class="block text-sm font-medium text-gray-700 mb-2">姓名</label>
                                    <input type="text" id="name" name="name" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors" placeholder="请输入您的姓名">
                                </div>
                                <div>
                                    <label for="email" class="block text-sm font-medium text-gray-700 mb-2">邮箱</label>
                                    <input type="email" id="email" name="email" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors" placeholder="请输入您的邮箱">
                                </div>
                            </div>
                            <div class="mb-6">
                                <label for="subject" class="block text-sm font-medium text-gray-700 mb-2">主题</label>
                                <input type="text" id="subject" name="subject" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors" placeholder="请输入消息主题">
                            </div>
                            <div class="mb-6">
                                <label for="message" class="block text-sm font-medium text-gray-700 mb-2">消息内容</label>
                                <textarea id="message" name="message" rows="5" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-primary transition-colors" placeholder="请输入您的消息内容"></textarea>
                            </div>
                            <button type="submit" class="w-full px-6 py-3 bg-primary text-white font-medium rounded-lg shadow-md hover:bg-primary/90 hover:shadow-lg transition-all hover-scale">
                                发送消息
                            </button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="bg-neutral-dark py-10 text-white">
        <div class="container mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center mb-6 md:mb-0">
                    <i class="fa fa-paw text-primary text-2xl mr-3"></i>
                    <span class="text-xl font-bold">宠多多科技</span>
                </div>
                <div class="text-center md:text-right">
                    <p class="text-gray-400">© 2023 重庆省宠多多科技有限公司. 保留所有权利.</p>
                    <p class="text-gray-400 mt-2">科技赋能养宠生活</p>
                </div>
            </div>
        </div>
    </footer>

    <!-- 回到顶部按钮 -->
    <button id="back-to-top" class="fixed bottom-6 right-6 w-12 h-12 rounded-full bg-primary text-white flex items-center justify-center shadow-lg opacity-0 invisible transition-all duration-300 hover:bg-primary/90">
        <i class="fa fa-arrow-up"></i>
    </button>

    <!-- JavaScript -->
    <script>
        // 导航栏滚动效果
        const navbar = document.getElementById('navbar');
        window.addEventListener('scroll', () => {
            if (window.scrollY > 100) {
                navbar.classList.add('shadow-md');
                navbar.classList.remove('shadow-sm');
            } else {
                navbar.classList.remove('shadow-md');
                navbar.classList.add('shadow-sm');
            }
        });

        // 移动端菜单切换
        const menuToggle = document.getElementById('menu-toggle');
        const mobileMenu = document.getElementById('mobile-menu');
        menuToggle.addEventListener('click', () => {
            mobileMenu.classList.toggle('hidden');
        });

        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    window.scrollTo({
                        top: target.offsetTop - 80,
                        behavior: 'smooth'
                    });
                    // 关闭移动端菜单
                    mobileMenu.classList.add('hidden');
                }
            });
        });

        // 回到顶部按钮
        const backToTopButton = document.getElementById('back-to-top');
        window.addEventListener('scroll', () => {
            if (window.scrollY > 300) {
                backToTopButton.classList.remove('opacity-0', 'invisible');
                backToTopButton.classList.add('opacity-100', 'visible');
            } else {
                backToTopButton.classList.add('opacity-0', 'invisible');
                backToTopButton.classList.remove('opacity-100', 'visible');
            }
        });

        backToTopButton.addEventListener('click', () => {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });

        // 添加页面加载动画
        window.addEventListener('load', () => {
            document.body.classList.add('loaded');
        });
    </script>
    <script src="script.js"></script>
</body>
</html>